public class AopUse
{
  public void Use()
  {
    // 客户端只依赖接口，不知道背后是代理
    IUserService userService = new UserServiceProxy();
    try
    {
      userService.DeleteUser(123);
    }
    catch (Exception ex)
    {
      Console.WriteLine($"错误: {ex.Message}");
    }
  }
}